import request from '@/utils/request'

// 查询事件详细信息列表
export function listDetails(query) {
  return request({
    url: '/system/details/list',
    method: 'get',
    params: query
  })
}

// 查询事件详细信息详细
export function getDetails(eventId) {
  return request({
    url: '/system/details/' + eventId,
    method: 'get'
  })
}

// 新增事件详细信息
export function addDetails(data) {
  return request({
    url: '/system/details',
    method: 'post',
    data: data
  })
}

// 修改事件详细信息
export function updateDetails(data) {
  return request({
    url: '/system/details',
    method: 'put',
    data: data
  })
}

// 删除事件详细信息
export function delDetails(eventId) {
  return request({
    url: '/system/details/' + eventId,
    method: 'delete'
  })
}
